{namespace ifp=Tx_IfpCurriculum2_ViewHelpers}
<f:layout name="Default" />

This Template is responsible for creating a table of domain objects.
<f:section name="header">{titel}</f:section>
<f:section name="main">


	<f:flashMessages />
	<div>Filter: Nur
	<f:link.action action="list" arguments="{type : 0}">Dozenten</f:link.action>, <f:link.action action="list" arguments="{type : 1}">Supervisoren</f:link.action>, <f:link.action action="list" arguments="{type : 2}">Selbsterfahrungsleiter</f:link.action> anzeigen <br>
	
	</div>
	<div class="trcontainer">

		<table class="currtable"
			style="border-collapse: collapse; width: 100%; margin-bottom: 0.5em;">
			<tr class="trohead2">
				<th>Name</th>
				<th>Ort</th>
				<th>Funktion<br/>FB</th>

			</tr>

			<f:groupedFor each="{dozents}" as="dozentOfLetter"
				groupBy="firstLetterName" groupKey="letter">
				<tr class="trohead">
					<td colspan="3"><strong>{letter}</strong></td>
				</tr>
				<f:for each="{dozentOfLetter}" as="dozent">
					<tr class="trelemento">
						<td width="60%"
							onclick="<ifp:CreateURI action='show' arguments='{dozent : dozent}' />">
							{dozent.nachname}, {dozent.titel} {dozent.vorname}</td>
						<td width="20%"
							onclick="<ifp:CreateURI action='show' arguments='{dozent : dozent}' />" >{dozent.stadt}</td>
						<td width="20%"
							onclick="<ifp:CreateURI action='show' arguments='{dozent : dozent}' />">
							<f:if condition='{dozent.extern}'><f:then>Gastdozent</f:then><f:else>
						{dozent.typDef}<br/>{dozent.fachbereichDef}</f:else></f:if></td>
					</tr>
				</f:for>
				<tr>
					
			</f:groupedFor>
		</table>
	</div>

</f:section>